import React, { Component } from 'react'
import GlobalBorder from '@c/globalBorder'
import { connect } from 'dva'

@connect(s => ({
  loading: s.loading.models['company'],
  ...s['company']
}))
class Page extends Component {
  constructor({dispatch, location}) {
    super()
    // this.state = {}
    dispatch({
      type: 'company/save',
      payload: {
        companyId: location.query.id
      }
    })
  }
  // componentDidMount() {}


  render() {
    const {title}=this.props
    return (
      <GlobalBorder>
        <p className={'common-title'}>{title}</p>
      </GlobalBorder>
    )
  }
}

export default Page
